﻿using System;
using System.Data;
using System.Collections.Generic;
using System.ComponentModel;
using System.Web.Services;
using KPIS.GERP.GFMS.IBLL;
using KPIS.GERP.GFMS.BLL;
using KPIS.GERP.GFMS.MODEL;

namespace KPIS.GERP.GFMS.SERVICE
{
    /// <summary>
    /// Summary description for FIM_Payments
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class FIM_Payments : System.Web.Services.WebService
    {
        IBLL_FIM_Payments bll = new B_FIM_Payments();

        [WebMethod]
        public List<M_FIM_Payments> GetFull(string bgm_source_seq
            , string bgm_year, string work_area_seq, string event_seq, string direct_pay)
        {
            return (List<M_FIM_Payments>)bll.GetFull(bgm_source_seq, bgm_year, work_area_seq, event_seq, direct_pay);
        }

        [WebMethod]
        public List<M_FIM_Payments> GetList(string bgm_source_seq
            , string bgm_year, string work_area_seq, string event_seq)
        {
            return (List<M_FIM_Payments>)bll.GetList(bgm_source_seq, bgm_year, work_area_seq, event_seq);
        }

        [WebMethod]
        public M_FIM_Payments GetInfo(string seq)
        {
            return bll.GetInfo(seq);
        }

        [WebMethod]
        public M_FIM_Payments GetInfoFromMoneyReqSeq(string money_req_seq)
        {
            return bll.GetInfoFromMoneyReqSeq(money_req_seq);
        }

        [WebMethod]
        public List<M_FIM_Payments> GetListFromPetition(string petition_seq)
        {
            return (List<M_FIM_Payments>)bll.GetListFromPetition(petition_seq);
        }

        //[WebMethod]
        //public string SelectRecentInsertedRoleSeq()
        //{
        //    return bll.SelectRecentInsertedRoleSeq();
        //}

        [WebMethod]
        public string Insert(M_FIM_Payments info)
        {
            return bll.Insert(info);
        }

        [WebMethod]
        public void Update(M_FIM_Payments info)
        {
            bll.Update(info);
        }

        [WebMethod]
        public void Delete(M_FIM_Payments info)
        {
            bll.Delete(info);
        }

        [WebMethod]
        public void ChangeStatus(M_FIM_Payments info)
        {
            bll.ChangeStatus(info);
        }

        [WebMethod]
        public void UpdateReceipt(M_FIM_Payments info)
        {
            bll.UpdateReceipt(info);
        }

        [WebMethod]

        public DataTable Report_SumUpPayment(string date)
        {
            return bll.Report_SumUpPayment(date);
        }
    }
}
